package com.xiaomi.dao;


import com.xiaomi.entity.Cart;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author jy
 * @Description: TODO
 * @date 2021/5/24
 */
public interface CartDao {

    Cart hasCart(int pid, int uid) throws Exception;

    int update(Cart cart) throws Exception;

    int insertCart(Cart cart) throws Exception;

    List<Cart> showCartsByUid(int uid) throws Exception;

    int update(int cid, int num, BigDecimal money) throws Exception;

    int delete(int cid) throws Exception;

    int clear(int uid) throws Exception;
}
